package com.system.service;

import com.system.dao.EmplAttendanceMapper;
import com.system.pojo.EmplAttendance;

import java.util.List;
import java.util.Map;

/**
 * Created by 陈文杰 on 2022/6/7 20:36
 */
public class EmplAttendanceServiceImpl implements EmplAttendanceService {


    private EmplAttendanceMapper emplAttendanceMapper;

    public void setEmplAttendanceMapper(EmplAttendanceMapper emplAttendanceMapper) {
        this.emplAttendanceMapper = emplAttendanceMapper;
    }


    @Override
    public List<EmplAttendance> queryEmplAttendanceAll() {
        return emplAttendanceMapper.queryEmplAttendanceAll();
    }

    @Override
    public EmplAttendance queryEmplAttendanceByEmpAttId(int empAttId) {
        return emplAttendanceMapper.queryEmplAttendanceByEmpAttId(empAttId);
    }

    @Override
    public List<EmplAttendance> queryEmplAttendanceByEmpId(int empId) {
        return emplAttendanceMapper.queryEmplAttendanceByEmpId(empId);
    }

    @Override
    public List<EmplAttendance> queryEmplAttendanceByDateSection(String date1, String date2) {
        return emplAttendanceMapper.queryEmplAttendanceByDateSection(date1,date2);
    }

    @Override
    public List<EmplAttendance> queryEmplAttendanceByDate(String date) {
        return emplAttendanceMapper.queryEmplAttendanceByDate(date);
    }

    @Override
    public List<EmplAttendance> queryEmplAttendanceByEmpName(String empName) {
        return emplAttendanceMapper.queryEmplAttendanceByEmpName(empName);
    }

    @Override
    public int addEmplAttendance(EmplAttendance emplAttendance) {
        return emplAttendanceMapper.addEmplAttendance(emplAttendance);
    }

    @Override
    public int updateEmplAttendanceByEmpAttId(Map<String, Object> map) {
        return emplAttendanceMapper.updateEmplAttendanceByEmpAttId(map);
    }

    @Override
    public int updateEmplAttendanceByEmpId(Map<String, Object> map) {
        return emplAttendanceMapper.updateEmplAttendanceByEmpId(map);
    }

    @Override
    public int updateEmplAttendanceByEmpName(Map<String, Object> map) {
        return emplAttendanceMapper.updateEmplAttendanceByEmpName(map);
    }

    //修改出勤表日期
    public int updateEmplAttendanceDate(String empDate){
        return emplAttendanceMapper.updateEmplAttendanceDate(empDate);
    }

    @Override
    public int deleteEmplAttendanceByEmpAttId(int empAttId) {
        return emplAttendanceMapper.deleteEmplAttendanceByEmpAttId(empAttId);
    }

    @Override
    public int deleteEmplAttendanceByEmpId(int empId) {
        return emplAttendanceMapper.deleteEmplAttendanceByEmpId(empId);
    }

    @Override
    public int deleteEmplAttendanceByDateSection(String date1, String date2) {
        return emplAttendanceMapper.deleteEmplAttendanceByDateSection(date1,date2);
    }

    @Override
    public int deleteEmplAttendanceByDate(String date) {
        return emplAttendanceMapper.deleteEmplAttendanceByDate(date);
    }

    @Override
    public int deleteEmplAttendanceByEmpName(String empName) {
        return emplAttendanceMapper.deleteEmplAttendanceByEmpName(empName);
    }
}
